<?php
namespace app\admin\controller;

use think\Controller;

class Base extends Controller
{
    public function initialize()
    {
    	
        if(empty(session('user_name'))){
            $this->redirect(url('login/index'));
        }
    }
}
